package com.develop.skwen.electricgomall.main;

import com.develop.skwen.basemodule.ui.BaseActivity;
import com.develop.skwen.electricgomall.util.MainDataUtil;

public class MainActivity extends BaseActivity<MainContract.MainPresenter,MainContract.MainVu> implements MainContract.MainPresenter {


    private MainAdapter mAdapter;


    @Override
    protected Class<? extends MainContract.MainVu> getVuClass() {
        return MainView.class;
    }

    @Override
    protected MainContract.MainPresenter getPresenter() {
        return this;
    }

    @Override
    protected void onBind() {

        getVu().initBottomNavigationBar(MainDataUtil.getInstance().getListMainData());

        mAdapter = new MainAdapter(getSupportFragmentManager(), MainDataUtil.getInstance().getListFragment());

        getVu().setAdapter(mAdapter);

    }
}
